
TRIGGER PROCEDURE FOR CREATE OF PI_MSTR.

{mfdeclre.i }

HK:
do:
    if not can-find ( first dt_mstr where dt_table = "pi_mstr" and dt_type = "ADD" ) then leave HK.
    
    for first dt_mstr no-lock where dt_table = "pi_mstr" and dt_type = "ADD" :
    
        run CreateDthist(input dt_table, input dt_field, input dt_type, input "", input "", 
	        input recid(pi_mstr), input pi_mstr.pi_list, input pi_mstr.pi_cs_type, input pi_mstr.pi_cs_code, input pi_mstr.pi_part_type,
     	    input pi_mstr.pi_part_code, input pi_mstr.pi_curr, input pi_mstr.pi_um, input string(pi_mstr.pi_start)) .
     	    
    end.
end.

{hkdttrans.i}
